English 中文(简体)
Lisp Flavored Erlang - Messaging primitives
原标题:Lisp Flavored Erlang - Messaging primitives

我通过所有文件,以及大多数LFE来源阅读。 所有发言都强调传统性别角色的基本利害关系——一般问题,溶解世界和 macro合宏观。

是否有任何人知道LFE如何处理发行原始产品? 为了确定一个更确切的问题,你将如何表达这一er:

A = 2,  
Pid = spawn(fun()->  
    receive  
        B when is_integer(B) -> io:format("Added: ~p~n",[A+B]);  
        _ -> nan  
    end  
end), 
Pid ! 5.  

那么,你知道,它就增加了一些数字,而答案是7个。

最佳回答
问题回答

《欧洲常规武装力量宣言》中严重缺乏实例,欢迎所有捐款。

基督教建议是正确的。 我的唯一意见是,没有必要将变数国名归为资本,这不是错的,而没有必要。

《LFElet是一个“real”的让步,其中变量的约束力在身体上首先可见。 你们可以使用各种模式。 还有一个<代码>let* 表格(实际上为macro)依次约束。

至今为止,我一直把埃尔兰的核心功能名称保留在 van里。 使用<代码>-而不是_的文字肯定会更多,但与检察官办公室其他所有功能名称和原子做些什么? 一项建议是,自动在LFE符号中标出“<>>>>-,在由此形成的原子中,并再次采用另一种方式。 这或许会奏效,但会引发混乱?

然后,我可以有一个行为模式,如:

(defmodule foo
  (export (init 1) (handle-call 2) (handle-cast 2) (handle-info 2) ...)
  (behaviour gen-server))

(defun handle-call ...)

(defun handle-cast ...)

etc ...

但我对此非常抱负。





相关问题
Lisp code called from Java

Long story: I am doing a project for my functional programing class, and I thought of writing an AI controller in Lisp, for the Mario AI competition. I was looking over frameworks/libraries/ways of ...

Emacs, Zen-Coding mode, and Putty

I use emacs via Putty and since Putty doesn t send certain key combinations to the remote console I generally need to re-bind them to other key combinations. After installing the amazing Zen-Coding ...

In Which Cases Is Better To Use Clojure? [closed]

I develop in Lisp and in Scheme, but I was reading about Clojure and then I want to know, in which cases is better to use it than using Lisp or Scheme? Thanks

lambda-gtk negative pointer

I was trying to write my own put-pixel on (Gdk) pixbuf in Lisp. When I finally realized how I can operate on C pointers in CL, new obstacle came along - (gdk:pixbuf-get-pixels pb) returns me negative ...

Is there a common lisp package naming convention?

I have created some of my own user packages and have run into a name clash. In Java, the naming convention is to use your domain name in the package name: e.g. import com.example.somepackage;. Are ...

SOAP request from within an AutoLISP/AutoCAD macro

We have built a webservice for a client that uses AutoCAD. They have a macro that runs in AutoCAD that builds a SOAP request. But they have not figured out how to actually send() the soap request to ...

热门标签