10 ms·
Statically typed metaprogramming. Ceylon is the only language that has that. No idea whether it's useful in real world though. Also, one feature I would love t
by RivieraKid 6y ago
Statically typed metaprogramming. Ceylon is the only language that has that. No idea whether it's useful in real world though.
Also, one feature I would love to see implemented in a modern language is this:
numbers..toString() // Equivalent to numbers.map(x => x.toString())
- dunefox 6y ago> numbers..toString() // Equivalent to numbers.map(x => x.toString()) You mean something like string.(1:5) in Julia?
- RivieraKid 6y agoYes. I really like Julia but I wish there was language that had all of the advantages of Julia but none of the drawbacks (for me it's lack of static typing, function(object) vs the more readable object.function(), 1-based indexing).
- dunefox 6y agoThe indexing really isn't a problem in practice after a while. function(object) isn't just a readability thing, it's due to multiple dispatch which is ingenious. Lack of static typing, well... yeah.
- RivieraKid 6y agoMost of the problems I've seen that multiple dispatch solves can be solved with extensions.
- dunefox 6y agoAnd everything can be implemented in assembly, that doesn't mean that there aren't superior alternatives.
- cygx 6y agoAlso, one feature I would love to see implemented in a modern language [...] In Raku (the language formerly known as Perl6), that is spelled numbers>>.toString() or using proper idioms @numbers>>.Str
- deleted 6y ago[deleted]