Skip to content

Is using Fusion for assistance in program development a bad idea? #173

Answered by pfusik
Kryvochyi asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

fut doesn't parse C header files and thus cannot call C functions, except for from native blocks. See a small sample:

native {
    #include <stdio.h>
}

public static class Hello
{
    public static void Main(string[] args)
    {
        foreach (string arg in args) {
            string s = arg;
            native { puts(s); }
        }
    }
}

While it's probably possible to code this way, it will quickly become very tedious, with no obvious advantages. (why not code in C directly?)

Two years ago @CLanguagePurist forked fut (then called cito) to create a C-only transpiler, with goals looking similar to yours.
See #76. His project seems to be gone now.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Kryvochyi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants