Giter Site home page Giter Site logo

About function name style about raylib-zig HOT 4 CLOSED

not-nik avatar not-nik commented on May 14, 2024
About function name style

from raylib-zig.

Comments (4)

Not-Nik avatar Not-Nik commented on May 14, 2024

if zig has a way of forcing linkage such that a reference to initWindow links to InitWindow, that would be awesome. Does such a thing exist?

from raylib-zig.

Jack-Ji avatar Jack-Ji commented on May 14, 2024

Not really sure. In my other c lib’s zig bindings, I simply use ‘pub const abc = Abc’, the bad part is editor’s auto-completion can’t give prototype of function, you need to jump over to check original declarations.

from raylib-zig.

Jack-Ji avatar Jack-Ji commented on May 14, 2024

Sometimes I even create a zig wrapper for c api, it could introduce some overhead, but I get to make api more zig-like. For example, optional arguments can be wrapped into a struct, and change c pointer to zig’s non-nullable pointer etc.

from raylib-zig.

Not-Nik avatar Not-Nik commented on May 14, 2024

I don't currently plan on implementing this, but if you want, you can update the function generator script to reflect your proposal.

from raylib-zig.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.