ponylang / pony-tutorial

:horse: Tutorial for the Pony programming language
http://tutorial.ponylang.io
BSD 2-Clause "Simplified" License
310 stars 111 forks source link

calling-c: elaborate on the x_dpy example #525

Closed greenfork closed 8 months ago

greenfork commented 8 months ago

The following code is not valid Pony code

let x_dpy = @XOpenDisplay(Pointer[U8])
SeanTAllen commented 8 months ago

@ponylang/committer I think the examples in this section are kind of a mess. They aren't valid code and leave alot for someone to guess how they are correct. I don't think that this change is helpful but I think it does highlight for me that the exmaples in this section are problematic.

I'd prefer to kick out an issue to fix the "this is basically Pony pseudo code" issues in this section.

If other committers feel this change is an improvement, we can both merge this and kick out an issue.

SeanTAllen commented 8 months ago

Closed in favor of https://github.com/ponylang/pony-tutorial/issues/526