Re:Crystal Language That Aims at C Performance with Ruby Syn...
by tomc1985 on Friday April 02, 2021 @03:01PM
(#26674748)
Am I reading this wrong or should that start with `def fib(n : UInt64)`?
[ Parent
| on HN ]
Re:Crystal Language That Aims at C Performance with Ruby Syn...
by xmly on Friday April 02, 2021 @04:10PM
(#26675426)
This could be a killer feature - smart inferred function name.
Re:Crystal Language That Aims at C Performance with Ruby Syn...
by saghm on Friday April 02, 2021 @04:41PM
(#26675760)
As a joke in college, I came up with the idea of a language that used fuzzy-matching to find the variable/function name with the closest match to the identifier used if an exact match wasn't found. This has the "fun" property where as long as a single variable is in scope, there are no undefined variable errors :)
Re:Crystal Language That Aims at C Performance with Ruby Syn...
by trenchgun on Saturday April 03, 2021 @03:06AM
(#26678927)
This seems like a super fun idea
Re:Crystal Language That Aims at C Performance with Ruby Syn...
by de6u99er on Friday April 02, 2021 @04:16PM
(#26675476)
Until someone adds a method called fib (staying with the example of the thread) doing something completely different.
Re:Crystal Language That Aims at C Performance with Ruby Syn...
by entropicdrifter on Friday April 02, 2021 @04:37PM
(#26675711)
Dynamic method swapout during recursion! Who doesn't want that feature?