TodePond / DreamBerd

perfect programming language
https://dreamberd.computer
Other
11.33k stars 349 forks source link

Localized decimal separator #659

Open DanTGL opened 3 months ago

DanTGL commented 3 months ago

One really confusing thing for a lot of developers outside of the US is that they don't use . as a decimal separator.

, is used in several other countries.

So the decimal separator should be based on your country.

In Sweden for example, you would write the following

const const pi = 3,14!

This should also work with classes and variables

Date,now()!

Since functions use commas, these would be replaced with .

function add(a. b) => {
   return a + b!
}

add(1. 2)!
DanTGL commented 3 months ago

Also arrays

const const scores = [3. 2. 5]!
realeatham commented 3 months ago

What happens if 2 of your devs are in different countries?

thecaralice commented 1 month ago

What happens if 2 of your devs are in different countries?

They'll need to use a VPN I think. For example, NordVPN, the sponsor of this video. Staying safe online is an ever growing difficulty and you could be exploited by hackers. NordVPN allows you to change your IP address, making you harder to track, securing your privacy. Check out the link in the description to get 20% off for the first two months and thank you to NordVPN for sponsoring this video.

guigui0246 commented 1 month ago

What happens if 2 of your devs are in different countries?

Then you make the code multiple time, one for each country