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

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

问题描述

阅读实用的Common Lisp后我终于明白了什么是关于宏是什么,我一直在寻找支持这个.NET平台的语言。有几个lisp方言的.NET,但从我能够收集的都是非常beta或放弃。最近我的兴趣是由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天全站免登陆