在F#宏支持 [英] macro support in F#

查看:238
本文介绍了在F#宏支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

阅读实用的Common Lisp后,我终于明白了有关宏大不了是的,我一直在寻找为支持该.NET平台的语言。有几个口齿不清方言的.NET但是从我已经能够收集所有要么很测试版或放弃。最近我的兴趣已经引发了Clojure的,但它为Java平台,并同时对可能无法使用IKVM它不觉得有些集成。尤其是当你想要做的东西像WPF。

After reading Practical Common Lisp I finally understood what the big deal about macros was, and I have been looking for a language for the .NET platform that supports this. There are a few lisp dialects for .NET but from what I have been able to gather all are either very beta or abandoned. Recently my interest has been sparked by Clojure, but it's for the java platform and while on probably could use ikvm it doesn't feel some integrated. Especially when you want to do stuff like WPF.

最近我一直听到耳语关于F#,我想看看文件,如果我能找到的宏观支持任何事情,但还没有找到它。因此,没有人知道吗?

Recently I have been hearing whisper about F#, I tried to look at the documentation if I could find anything about macro support, but haven't found it. So does anyone know?

感谢:)

推荐答案

那么,F#是基于OCaml中和OCaml有相当的广泛的宏系统。由于F#和OCaml中的语法和语义相似,你可能能够端​​口在ocaml的宏系统到F#。

Well, F# is based on OCaml and OCaml has a rather extensive macro system. Given the syntactic and semantic similarities of F# and OCaml you may be able to port over the Ocaml macro system to F#.

除了偷Ocaml程序编写的宏系统,我不知道一个罐头宏系统的F#的。

Other than stealing Ocaml's macro system I'm unaware of a canned macro system for F#.

这篇关于在F#宏支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆