3 ms·
I've actually found that Lua is one of the least painful languages to write with voice control, as it has so few symbols - they tend to be only operators so you
by shakna 7y ago
I've actually found that Lua is one of the least painful languages to write with voice control, as it has so few symbols - they tend to be only operators so you can switch them out easily enough in your engine. (And a few extras for moving around in your text editor, like "com jump $n upwards").
But you still do need to replace all sorts of brackets, like any language. At the moment I've got:
"bracket" == (
"brace" == {
"index" == [
(And "end $x" for the other side of it.)
Clearly not ideal, but works well enough for now, certainly a lot less painful than trying to maintain indentation in Python with voice only. (com select 20 lines upwards, reverse tab... Followed by swearing as it tabs instead of untabs.)
- Cogito 7y agoFor what it's worth, I've always known them as: ( parentheses (parens), alt. round bracket { brace, alt. curly bracket [ bracket, alt. square bracket The biggest confusion is between bracket and parentheses, in that people will use bracket to mean both. If I think there might be confusion I use the alternatives as they seem to remove all ambiguity.
- shakna 7y agoYeah, unfortunately "parenthesis" is a hard word for most of the Speech-To-Text engines I tried, at least with my accent. ("parent thesis") And it is somewhat of a long word to be using all the time.
- Cogito 7y agoAnd for that reason, if I was using speech-to-code, I would probably use the alternative forms of 'round bracket', 'square bracket', and 'curly bracket' when I need to specify the type.