+ 2

Standard Comments

Do You think about the comment mode on each PL (programming language)? Looks like almost equal. On Java, // or /* (multi-line) is the same no CSS, PHP and C++. On Python, # (one-line) is equal to PHP. The HTML (Not a PL) <!-- --> is the same to XML and near to ADA. Why we don't have a standard for this? Like the Logic programming for all PL? Like the numbers, on everywhere being the same. This change, initially, can looks so big, but we will introduce a common method to everyone, programmer of any language, understood a script of another PL to modify or made more easily an integration between languages. Help me if I'm wrong, community!

24th Aug 2018, 2:07 PM
Wansley Nery
Wansley Nery - avatar
1 ответ
+ 2
that'll be tough to reach given that almost every creator/inventor of a PL tends to favour unique syntax and features with few similarities to other PLs. However, differences in commenting style shouldn't be a big problem. Maybe someday someone will invent a kinda universal PL or IDE that could accept and sync any known comment syntax of other PL
24th Aug 2018, 2:43 PM
E_E Mopho
E_E Mopho - avatar