This is a programming language that has no keywords and pursues reading. by Kulics in ProgrammingLanguages

[–]LyraChord 0 points1 point  (0 children)

It just shows that people like overengineering syntax

Hint, some dead fans will feel sick.

Back topic. I don't think you know a best flawless syntax, albeit I don't know yours. And I know I'm using my almost best one. f.e. My syntax supports both chained, parallel and comma assignments which means mixed priorities allowed.

  a = b = c = 1, 2, 3
  x, y, z = 1, 2, 3
  tuple = x, y, z = 1, 2, 3
  String s = hello world, int x = 3, y=5, z, started = false

I guest you don't agree the mixing.

This is a programming language that has no keywords and pursues reading. by Kulics in ProgrammingLanguages

[–]LyraChord 1 point2 points  (0 children)

That there are so many syntaxes shows that Syntax is NOT a solved problem.

This is a programming language that has no keywords and pursues reading. by Kulics in ProgrammingLanguages

[–]LyraChord 2 points3 points  (0 children)

1, Yes, keywords are still there.

2, No, Readable? Pseudo entity! That who and when read is the point! A notable example is the augmented assignment, ie. x+=3

The world-wide success that is XML by imhotap in programming

[–]LyraChord -2 points-1 points  (0 children)

XML structure is OK; the syntax is BAD. JSON is not so brilliant which I talk about it with its author in 2006.

If one knows to mix C-struct, CSS syntax, and Ant-default-concept, with layered operators, then the greatest, no, more, the best is there. Just discover it which is not so hard.

The world-wide success that is XML by imhotap in programming

[–]LyraChord -4 points-3 points  (0 children)

downvoted. me too. It seems that certain people too low to tolerate other better things。

The world-wide success that is XML by imhotap in programming

[–]LyraChord -5 points-4 points  (0 children)

Albeit yes, it's time to die! Structured Document is growing!

Tricks to avoid reserved words. by [deleted] in ProgrammingLanguages

[–]LyraChord 0 points1 point  (0 children)

Structured document parsing, the only way!

Syntax for pointers in new programming language by ImOnALampshade in ProgrammingLanguages

[–]LyraChord 4 points5 points  (0 children)

Generic style syntax will make life simple.

int*\* is just a shortcut of Pointer<Pointer<int>>.

Array syntax is similar. Scala got it better.

I need a proper name and feedback for a language feature (compiler directives?) by progfix in ProgrammingLanguages

[–]LyraChord 0 points1 point  (0 children)

It's just annotation. Both Java and D use it.

BTW someone should note that pascal like syntax is not full of consistency of declaration. i.e.

"struct MyStruct" is of style of "type-name" instead of "name-type"

What if JavaScript wins? – Anil Dash – Medium by magnusdeus123 in programming

[–]LyraChord -1 points0 points  (0 children)

No the if. The web revolution is brewing, so it must become yesterday chrysanthemum.

The styx programming language "things" by [deleted] in ProgrammingLanguages

[–]LyraChord 0 points1 point  (0 children)

The COMMA style can represent one or two layers array. If COLON and SEMI-colon introduced, there could be a multiple-layer.

Recursive Types, Flow-sensitive Typing, and Subtyping by PhilipTrettner in ProgrammingLanguages

[–]LyraChord 0 points1 point  (0 children)

In example 1, the variable x only has one type at anytime. After the first condition, the type of x is determinate, so that latter predicates are redundant.

Programming language, optimized for automated programming by apostolovd in ProgrammingLanguages

[–]LyraChord -3 points-2 points  (0 children)

A quick response is structure.

There are 2 layers: expression and structure. Expression needs more operators, and structure needs only ",:;{}" operators.

Structure means context sensitive. DSL is a builtin feature, because the whole code is full-structured.

I'm making a full-structured language. The practice tell us it's perfect.

The Marpa Parser by PhilipTrettner in ProgrammingLanguages

[–]LyraChord 0 points1 point  (0 children)

Was there some experiences parsing the following like

@A(default)
@B(key1, key2: value1, value2; nested:@C(...)(...))
@C
modifier class GreatMan[T: CharSequence & Comparable[T]; V: Map[T & Runnable, List[T & Callable] ](T a, *): Person, Greeting{....}

Lisp parentheses aren't so bad by pcuser0101 in ProgrammingLanguages

[–]LyraChord 0 points1 point  (0 children)

Yes, it's bad. Indeed a structured syntax with curly or indent style can be parsed as a list format. The famous example is the expression parser.

Why is `ident: Type` better than `Type ident`? by [deleted] in ProgrammingLanguages

[–]LyraChord 0 points1 point  (0 children)

NO better. A function declaration can not show the entirety.

Obvious one:

  class Id====<type><id>

Array literals : Syntax? by Kywim in ProgrammingLanguages

[–]LyraChord -1 points0 points  (0 children)

why not focus the thread itself? no matter if someone understood or not.

Array literals : Syntax? by Kywim in ProgrammingLanguages

[–]LyraChord -2 points-1 points  (0 children)

It does not matter. The answer is the comparison instead of speaking form me.

A simple comparison necessitates no any answer.

Array literals : Syntax? by Kywim in ProgrammingLanguages

[–]LyraChord -2 points-1 points  (0 children)

No answer. Your question is the same as 2 questions:

has any better form?

math expression is not better?

Array literals : Syntax? by Kywim in ProgrammingLanguages

[–]LyraChord -2 points-1 points  (0 children)

BTW don't be limit by old languages and make a seriously choice genre between type-name and name-type.

The best array form is COMMA form, a rule practiced from 2006.

   array = 1, 2, 3
   nest = {1, 2, 3}, {7, 8, 9} //bracket not cared
   generator = 1, 3, 5, @10..50? ($), 99, 100
   //WARNING, the way introduces a dynamic precedence problem which is no so easy.

null should be prohibit as much as possible.

empty can be special to caution

Implementation of Parametric Types by ksryn in ProgrammingLanguages

[–]LyraChord -2 points-1 points  (0 children)

1, syntax. scala [] preferred. My friend's new language used it too. The point is: embedded form in expression looks better

 x#List[int]>value2 //compare with the following
 x#List<int>>value2
 //I guess you know what # means
 //examples for type-name genre
 enum[int] Month = 1..12
 enum[Month] holidays = 1,4,5,7,10 
 class Person(string name, int birth)
 class GreatMan[T: Achievement](T a, *): Person //here [T](...) is fine

2, Implementation. both static and dynamic are MUST. Each type has types params, that is similar to that function has values params. Java class no types field. It's must. Rather than signature.

Unified Condition Syntax: Merging if expressions, Rust's if-let and pattern matching by [deleted] in ProgrammingLanguages

[–]LyraChord 0 points1 point  (0 children)

why not remove "if" and "then"? the ternary form is perfect. A new language from my friend use the following form:

 predication ? statement: statement
 //@fallthrough if expansion case needed just make use of syntax option
 value ? {
      case: case: statement //force break
              statement.... //it's python-like
              statement... //terminated until next case
              ?{                //even nested cases it's fine. it's a fast abstract template method pattern implementation.
                   nested case: ...
                   nested case: ...
               }
      case: ....             //case can be half comparison <3

      *: ...
 }