.... snip ... 这似乎与C语言没什么关系,而且是因此 偏离主题。 - [邮件]:Chuck F(cinefalconer at maineline dot net) [page]:< http://cbfalconer.home.att.net> 尝试下载部分。 " Adem24" < ad **** @ adem24adem24.org.invalidwrites: 我发现本文之外没有任何证据证明这样的组织存在。 那么你已经有近18000年的时间来完成它。鉴于尝试数量为的尝试,已经创建了一个新的通用编程 语言,它将改变一切,这可能已经足够了。 [...] comp.programming的后续工作(尽管comp.lang.misc可能是 发布此内容的合适位置 - 不同于其他任何其他 comp.lang。*群组,它被交叉发布)。 - Keith Thompson(The_Other_Keith) ks***@mib.org < http://www.ghoti.net/~kst> ; 诺基亚 我们必须做点什么。这是事情。因此,我们必须这样做。 - Antony Jay和Jonathan Lynn,是部长 The World Joint Programming Language Standardization Committe (WJPLSC)hereby proclaims to the people of the world that a new programming languageis needed for the benefit of the whole mankind in the 21st millenium.This new language not only differs from existing ones by new featuresand paradigms but which also brings real advantage by rigourouslypreventing bad programmer habits by omitting features which are outdated.In the proposed new joint language for the world (codename YAPL)several concepts in use by currently used bad languages have been eliminated.All UN member countries and organizations are urged to adapt theserecommendations which are for the benefit and safety of the planet and the mankind:1) There is no goto statement.Hidden goto''s like break- and continue-statements are also omitted.2) There is no return statement.Instead a result variable can be declared to which the result of a function can be assigned.3) There are no automatic type conversions.When a subprogram should be used for different types it must be overloaded.4) There are no variable length parameter lists.Instead it is possible to use arrays as parameters.5) There are no default parameters.But it is easy to define two subprograms: One with and one without an additional parameter.6) There is no special "parameter" called "self" or "this".In a procedure the receiving object is declared as formal parameter with a user-defined name.7) There is no macro feature since this mechanism is too similar to the subprogram feature.Instead subprograms can be used in a more flexible way than in other languages.8) There are no reserved words.9) There is no conceptual distinction between functions, operators, procedures and statements.10) The procedure calling mechanism is not based on a concept with an object-message pair(An object receives a message). Instead a match is done over a list of objects.This more general (and powerful) mechanism is called multimatch and it includesthe simple object-message mechanism as special case.cu l8erJesus DeCoder.. 解决方案Replace "array" with "list" and you''ve got Lisp.--Free games and programming goodies. http://www.personal.leeds.ac.uk/~bgy1mm.... snip ...This appears to have little to do with the C language, and is thusoff-topic.--[mail]: Chuck F (cbfalconer at maineline dot net)[page]: <http://cbfalconer.home.att.net>Try the download section.I see no evidence outside this article that such an organization exists.Then you''ve got nearly 18,000 years to work on it. Given the numberof attempts there have been to create a new universal programminglanguage that will Change Everything, that might be almost enough.[...]Followups to comp.programming (though comp.lang.misc might have beenan appropriate place to post this -- unlike any of the othercomp.lang.* groups to which it was cross-posted).--Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>Nokia"We must do something. This is something. Therefore, we must do this."-- Antony Jay and Jonathan Lynn, "Yes Minister" 这篇关于YAPL - 又一种编程语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
05-27 13:07
查看更多