Hacker News new | ask | show | jobs
by RX14 28 days ago
Have you considered the syntax crystal uses i.e. 42_i32 and 42_u8?
1 comments

It is not possible since you can create new integer types by sub-classing the primitive ones:

  class UserId: Int64
    ...
  end
  var user = UserId: 42
I also plan to replace predefined Int64, Int32, ... by generic types Int(64), Int(32), ... LLVM allows any integer size and Copper allows this kind of generic types.