Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
angersock
on May 13, 2014
|
parent
|
context
|
favorite
| on:
“If Your Only Tool Is a Hammer Then Every Problem ...
Or even:
strlen("ahaoho")
The C code more closely reflects what the Ruby is doing, but otherwise yes, you're correct. In C++ I could probably get it all done at compile time anyways.
JetSpiegel
on May 13, 2014
[–]
The whole point of the code is to concatenate two C strings at runtime. That's the big problem.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: