5 ms·
That sounds awesome. I've dreamed of a context-aware, natural language programming language: Change value of potatoes to 10. (potatoes = 10). Make potatoes eq
by bennyg 13y ago
That sounds awesome. I've dreamed of a context-aware, natural language programming language:
Change value of potatoes to 10. (potatoes = 10).
Make potatoes equal 10. (potatoes = 10).
Give every person at the dinner table a potato. (for x = 0; x < dinnerTable.count; x++ {dinnerTable[x].potatoes += 1})
Etcetera.
- nekopa 13y agoBut think about it this way: So, I want to check my diary and see what I need to do today. Anything really important should flash, so I know I need to take care of that. But, I know that my boss is waiting for me to finish that puff piece on our new acquisition, so double flash that. Also let me know I need to buy cat food. Stat. Make a program that can parse that piece of text and you're onto a winner. (I'm trying)
- mbrock 13y agoCheck out Inform.
- boomlinde 13y agoIt's a neat idea, but I don't think it's particularly useful. Natural language is an unnecessary abstraction that will not help you solve the problem, unless the problem in itself is about grasping the syntactic peculiarities of your language of choice. From your examples, it seems like it would just be a very verbose way of defining a solution to a problem in basically the same way you do in any imperative language. Syntax should be the least of concerns, and even if it wasn't, involving the subtleties and ambiguities of english language wouldn't be the solution. EDIT: I don't mean to say that a natural language programming language couldn't be useful, but I'm arguing that it won't be unless you can use natural language to move closer to the problem domain, rather than abstracting the solution description further.