stugol
stugol
No, that doesn't always work. Sometimes the environment variables are not set, and you have to get it some other way.
Please open this issue again. The problem cannot be solved by writing Crystal code, as the "magic numbers" needed for the `ioctl()` call are platform-specific. It is impossible to write...
For example, the code here works perfectly on my Debian system: ``` cr module I::Terminal lib C struct Winsize ws_row : UInt16 # rows, in characters */ ws_col : UInt16...
@waterlink: It is impossible because it can be different on different systems, even if they're all 64-bit or all running Linux! According to stackoverflow: "[TIOCGWINSZ] is a magic constant determined...
@waterlink: It is normal for a gem to compile itself when you install it. The `gem` command exists for this purpose. If Crystal has such a system, I am unaware...
Could even support a terser syntax, that compiles to the same thing: ``` get-fred -> rec Person name = "Fred" number = 1 ``` The types of `name` and `number`...
No error should result in the compound case: ``` get-fred -> rec Person name = "Fred" number = 1 Person.new "Fred", 1 ``` If all the values are specified, as...
Before you ask: The real-world application for this is simply that returning an anonymous tuple is bad design: ``` my-fn -> {"Fred", 1, true, 27, #green} -- WTF!? What do...
> the path chosen atm for type is a bit "opposite" to that I don't follow. > I also think the temp-name should derive more data from code - making...
It's a bugger, certainly. I'm massively in favour of this feature, but the Ruby/Crystal `?` and `!` make it difficult. There are plenty of methods that have both a `?`...