Results 245 comments of nomennescio

Hmm, I was thinking, would it make sense to be able to coerce `boolean` into `integer` using the existing coercing mechanism?

At least having an explicit word to turn a `boolean` into a `bit` would be useful: ``` : >bit ( ? -- 1/0 ) 1 0 ? ; ``` and...

Implement character literals as library, with `'a'` a syntax word the same as `CHAR: a`. That would add many words as aliases for the literals. @mrjbq7 didn't like that.

@mrjbq7 mentioned adapting the lexer, but what syntax to use? I mentioned that it will reduce the names you can use for words, so this has to be carefully considered,...

I proposed a simple non-conflicting change to just use `ALIAS: ' CHAR:` , which gives `' a` as syntax, just as short as `'a'`, and is similar to `\` in...

> Some variations that could be considered: > ... > > Note: some of our words have a single-quote at the end (e.g., `foo`, `foo'`, and `foo''`) and we use...

> And do we want to support embedded utf-8 code points or graphemes: > I think that would just be the logical thing to do, if we support full unicode...

> We also should likely move away from using "character" to refer to "code points"... and then do we want "grapheme syntax"? For me I already think "UTF-8 code point"...

> Some variations that could be considered: > > ``` > ' snowman > 'snowman' > ` snowman > `snowman > char: snowman > ch: snowman > ch'snowman > char"snowman"...

When a more terse syntax is introduced, maybe it's an idea to check the Factor sources and see where it's more appropriate to replace integer literals with char literals? Or...