Wildest programming language idea
amasad (2495)

What is your wildest programming language idea? This could be fun (silly) ideas or really cool and useful ones.

Go!

Also on le twatter: https://twitter.com/replit/status/1275525512861900800

You are viewing a single comment. View All
DynamicSquid (2673)

Make a language with the exact same syntax as ENGLISH. For example:

"This is a comment."

Create a new variable named answer.
Have the variable named answer store the value of 10.

"Don't forget, grammar and spelling matter!"

If the variable answer is equal to 10, then do the following:
  1. Add a value of 5 to the variable.
  2. Create a new variable named question.
Otherwise, do the following:
  1. Exit the function.

Now, you can say that you're favourite language is English!

firefish (308)

@DynamicSquid

Print the following sentence to console: "Well LOL"
Call the function under the name of "Test123"
Declare a global array called "Drinks" with content:
   Index zero has: "Tea"
   Index one has: "Coffee"
   Index two has: "Peach Juice".
Declare a function under the name of "Test123":
    1. Pick a random item from the list called "Drinks", and put it in a variable called "drink"
    2. Print the variable "drink" to the console.
    3. Exit the function.

LOL

firefish (308)

@DynamicSquid As long as you are a fluent English speaker.
And all English lessons are now coding lessons too.

firefish (308)

@DynamicSquid Simple way of making school even more interesting than it already is...

awesome10 (212)

@johnstev111

Change language to python
firefish (308)

@awesome10 The point is that it's English

firefish (308)

@DynamicSquid You have to deal with synonyms though

nk1rwc (86)

@DynamicSquid dude that lang is good (english grammar lang)

firefish (308)

@nk1rwc I know. But this language cannot accept internet slang: e.g. lol or lmao.
You also have to laboriously type abbreviations, i.e. expanding to id est, and e.g. expanding to exemplis gratis.

ChezCoder (1484)

@DynamicSquid lol i think the name for it already exist, lookup pseudocode

PXY (42)

Was that you're intentional or can I make fun of you @DynamicSquid

Barry123 (54)

Try Chinese instead of English?
Hello world would be:
打印 “你好世界”。
This prints whatever you enter:
a 设为 输入(“输入:”)
打印 a

javaarchive (0)

@DynamicSquid that would make math problem solving easy.
To implemement this look for a NLP library for your language

EitanAlperstein (6)

To improve on that idea, try spelling everything backward!

".tnemmoc a si sihT"

.rewsna deman elbairav wen a etaerC
.01 fo eulav eht erots rewsna deman elbairav eht evaH

"!rettam gnilleps dna rammarg ,tegrof t'noD"

:gniwollof eht od neht ,01 ot lauqe si rewsna elbairav eht fI
.elbairav eht ot 5 fo eulav a ddA .1  
.noitseuq deman elbairav wen a etaerC .2  
:gniwollof eht od ,esiwrehtO
.noitcnuf eht tixE .1  

@DynamicSquid

CSharpIsGud (425)

@DynamicSquid https://github.com/pannous/english-script

I was thinking of it and even about using natural language processing libraries to do it. But it kind of exists already.

pythoder (183)

@Barry123 WOOHOOOO!!!!! CHINESE DA BEST!