Posts: 4,647
Threads: 1,494
Joined: Sep 2016
Apr-22-2022, 10:38 PM
(This post was last modified: Apr-22-2022, 10:38 PM by Skaperen.)
what would break if the code syntax was extended so that
{{
and
}}
bounds a
frozenset like
{
and
}
bounds a
set?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,647
Threads: 1,494
Joined: Sep 2016
(Apr-22-2022, 10:44 PM)Gribouillis Wrote: I think it would break the idea that the syntax must not be altered for a marginal use case. I'm 99% certain it would be rejected for this reason.
i would have to agree with that. but, is there anything in the
syntax of the language that would break? i am asking this way for my thinking about the design of a new special-purpose language, not really a change to Python (but one hat borrows much from it).
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,647
Threads: 1,494
Joined: Sep 2016
(Apr-26-2022, 09:04 PM)Gribouillis Wrote: If sets become hashable someday, it will collide with your proposed syntax.
if that were to happen, then what would be the point of having a frozenset? a mutable object being hashable i cannot imagine unless its hash is allowed to vary. that could be very interesting. if i were to fork Python (to add my own syntax), it would have to be a fork of a specific version, i would think.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.