Hacker News new | ask | show | jobs
by SilasX 2783 days ago
>Making whitespace-sensitive syntax, like in Python & Haskell, optional syntactic sugar for explicit brackets & separators.

That shouldn't matter with an IDE or plugin. If static analysis can identify the blocks -- and it has to! -- the screen reader can just read it as if it had your preferred block notation rather than noting the whitespace.

3 comments

That's usually true but a lot of code in the middle of being edited isn't syntactically valid (a common special case is a file in the middle of a merge conflict). So you need some way of being able to accept any input and represent it usefully, even if you couldn't execute it.
You also need to read coding books, documentation examples and webpages, so having to use an IDE is not the best solution.
Seems like the real problem is the lack of interoperability between a special coding parser and arbitrary snippets of online code.
Does that mean you need a screen reader that knows about whatever programming language you use?