Regarding the proposed Binray Literals Deprecation

Don Allen donaldcallen at gmail.com
Sun Sep 18 01:55:35 UTC 2022


On Saturday, 17 September 2022 at 22:11:35 UTC, Preetpal wrote:
> On Saturday, 17 September 2022 at 21:57:41 UTC, Preetpal wrote:
>> [...]
>
> Also, [Emacs 
> Lisp](https://www.gnu.org/software/emacs/manual/html_node/elisp/Integer-Basics.html), [Fortran](https://riptutorial.com/fortran/example/6321/literal-constants), [Go](https://go.dev/ref/spec#Integer_literals), [Haskell](https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/binary_literals.html), [OCaml](https://v2.ocaml.org/manual/lex.html#sss:integer-literals) and [Rust](https://doc.rust-lang.org/rust-by-example/primitives/literals.html). It's hard to find a language without this feature (every single language that came to mind had it).

Haskell does *not* have binary integer literals. See the 2010 
language report and

````
Prelude> 0x10
16
Prelude> 0o10
8
Prelude> 0b10

<interactive>:8:2: error: Variable not in scope: b10
````


More information about the Digitalmars-d mailing list