Robert Virding rvirding@REDACTED Wed Nov 28 17:36:35 CET 2007 Previous message (by thread): [erlang-questions] My biggest beef with Erlang Next message (by thread): [erlang-questions] Message queue reflection (was: My biggest beef with Erlang) Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] Sorry, I think you are wrong there. You have a number of problems when detecting/handling saf
チュートリアルに出てこなかったので、例外の投げ方と捕捉方法について調べてみました。 Erlangにもtry .. catchによる例外処理の仕組みがあります。 JavaScriptと同様にthrow()で任意のオブジェクトを例外?として発生させることができます。 発生した例外はcatchで捕捉でき、パターンマッチによって処理を切り分けることが可能です。 Javaのfinallyに相当する機能も提供されています。 try構文 以下の形式で書きます。 try <処理1>, <処理2> catch [<クラス>:]<パターン1> [when <ガード条件>] -> <例外発生時の処理>; [<クラス>:]<パターン2> [when <ガード条件>] -> <例外発生時の処理> after <必ず実行したい処理> end <処理1>,<処理2>の部分に例外を捕捉したい処理を書きます。 この処理で例
A programmer's blog - will deal with everything that relates to a programmer. Occasionally, it will contain some humour, some politics and some sport news. Over the last couple of months I have been using Oliver Steele's Functional Javascript a lot. The string lambdas provide enough syntactic sugars to reduce a lot of accidental complexities from your codebase. Reginald Braithwaite recently gave u
Previous parts: Intro, Part I, Part II, Part III and Part IV List comprehensions. List comprehensions is very familiar topic for Python programmer. It’s a syntactic sugar which provides a succinct notation for producing elements in list. Erlang: [Expr || Qualifier1,...,QualifierN] Expr - is an arbitrary expression Qualifier is either a generator or a filter. A generator is of form Pattern <- Lis
Rsaccon The design is a privileged term where it includes a collection of ideas, and it is guided by a set of principles in order to achieve a target. Web design is similar to that of the normal design process where the data is presented on the electronic web pages. The folks can access the internet with the aid of the browser. A list of elements is used in the web design such as Layout, Color, Gr
Previous parts: Intro, Part I, Part II and Part III Funs - sequel Continuing previous post about functions let’s remember about Fun. I already mentioned it in Part I and promised to show its advanced forms. So, here we go. Fun with one clause: 1> Double = fun(X) -> X * 2 end. #Fun<erl_eval.6.56006484> 2> Double(2). 4 But Fun actually has the same function declaration syntax as regular function, ex
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く