Am 11.11.2011 13:44, schrieb Marco Leise:
Am 11.11.2011, 10:06 Uhr, schrieb SimonM <u...@example.net>:

On 2011/11/11 02:20 AM, Walter Bright wrote:
You're also free to add the following to your code:

alias byte int8;
alias short int16;
alias int int32;

If you feel it improves your code, go for it.

I *almost* wish I could say:

alias size_t int;

I know I wrote this before, but I can't hold back now *g*. I use:

alias size_t ℕ;

I think on the move to 64-bit, the native machine word data type (which
was uint de facto), got left behind a little. size_t is not a keyword
and it has an _ in its name. I don't know why _ type names look so odd
to me. It feels like using some very *special* type, not meant for every
day use. So I went for ℕ bound to AltGr+N in private code.

That's confusing, as ℕ usually is *any* number > 0 (or sometimes >= 0), so it's more like bigint (with a restriction to positive numbers) than size_t.

(Also none-ascii chars in code outside of strings is bad IMHO)

Cheers,
- Daniel

Reply via email to