Skip to main content

New answers tagged

4 votes

What do you mean by the ‘computational model’ of a programming language?

The term Computational Model (hereafter, CM) in general (outside the specific context you specified, that is "the CM of the programming language"): In Introduction of theory of comptutation, ...
pber's user avatar
  • 43
-1 votes

What are grammar checker tools that can be used when designing a new language?

I saw tools for the automatic generation of random inputs, according with one specific grammar rule. All this in Smalltalk (SmaCC and PetiteParser had tools like that). But those was mechanisms (I ...
pber's user avatar
  • 43
0 votes

What are the different ways of implementing special methods?

Various languages introduce special syntax to disambiguate their own special affordances (or even internalities) from similar regular names by the user in user-space, based on the notion that both use ...
skreutzer's user avatar
0 votes

Are there any advantages of evaluating expressions differently in compile time and runtime?

One of the design goals of the Go language is to be easy of use. It aims to be a prototyping language like Python, but still remain efficient by having a compiler and static typing. This feature fits ...
AccidentalTaylorExpansion's user avatar
3 votes

Are there any advantages of evaluating expressions differently in compile time and runtime?

If it has advantages, a better approximation would be to have a new type for decimals up to any finite precision, or just fractions. The new type doesn't need to be restricted to compile time. Once it ...
user23013's user avatar
  • 2,510
4 votes

Are there any advantages of evaluating expressions differently in compile time and runtime?

Numbers are the quintessential value objects. $1+1=2$ anywhere in the world, but numbers in computers work differently. $1+1=2$ in u8 and ...
André L F S Bacci's user avatar
23 votes

Are there any advantages of evaluating expressions differently in compile time and runtime?

Evaluating the same expression differently at compile time versus runtime would indeed be horrendous behavior. But, that's not really what's going on here. Go supports "untyped" floating ...
K. A. Buhr's user avatar
1 vote

The static keyword and clarity in language design

With regard to the usage static to describe file-scope objects, it may be worth noting that some linkers allowed symbol definitions and references to be treated ...
supercat's user avatar
  • 1,812

Top 50 recent answers are included