4 ms·
C++ has an optional digits separator too. Not '_' but single quotes, since c++14 [0]. Which is cool. Swift has it too [1]. Erlang has the full stop '.' as expr
by abrolhos 7y ago
C++ has an optional digits separator too. Not '_' but single quotes, since c++14 [0]. Which is cool. Swift has it too [1].
Erlang has the full stop '.' as expresssion/statement terminator [2].
[0] https://en.cppreference.com/w/cpp/language/integer_literal https://en.cppreference.com/w/cpp/language/integer_literal
[1] https://docs.swift.org/swift-book/ReferenceManual/LexicalStructure.html#ID414 https://docs.swift.org/swift-book/ReferenceManual/LexicalStr...
[2] https://erlang.org/doc/getting_started/seq_prog.html https://erlang.org/doc/getting_started/seq_prog.html
I like those features too! I'm glad they are coming to contemporary languages.