Re: The new GTask name in GIO is wrong



hi;

On 2 November 2012 14:15, Tal Hadad <tal_hd hotmail com> wrote:
> Hey. I'm new to this list.
> I've joined the list because something that really bug me with GIO:
> I've seen the big improvement that have been invested in GTask.
> The API is good, but the name GTask is BAD.
>
> First, there were an old project called GTask[0], which tried to give
> parallelism ability and
> alternative to today GIO async(I think it wasn't exist back than).

this is inconsequential: GTask was abusing the G* namespace, which is
reserved for GLib, GObject, and GIO. also, GTask has been
re-implemented/renamed to Iris[0].

> I suppose you just change GTask to a more specific name, say, GAsyncTask

the naming is a bit generic, I concede that — but I suggest you read
the bug that led to the introduction of this API to have some informed
opinion on it: https://bugzilla.gnome.org/show_bug.cgi?id=661767

also, GTask is a GAsyncResult, which means its asynchronous nature is
encoded in the class hierarchy — I don't think it should be reflected
by the name as well.

ciao,
 Emmanuele.

[0] https://github.com/chergert/iris

-- 
W: http://www.emmanuelebassi.name
B: http://blogs.gnome.org/ebassi/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]