# Fluent APIs in Julia

**URL:** <https://discourse.julialang.org/t/fluent-apis-in-julia/11161>\
**Category:** General Usage\
**Created:** [May 26, 2018, 9:53am UTC](https://discourse.julialang.org/t/fluent-apis-in-julia/11161 "2018-05-26T09:53:36Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Raf](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/raf/32/3383_2.png) [@Raf](https://discourse.julialang.org/u/Raf)\
**Post date:** [May 28, 2018, 9:31am UTC](https://discourse.julialang.org/t/fluent-apis-in-julia/11161/7 "2018-05-28T09:31:04Z")

</div>

I don’t think its possible to have` .select`

But it seems like you need to be very clear if you are making a macro-based DSL or using pure julia. Because the approach and syntax could be _totally_ different. If your using a custom macro, you seem to be leaning to a DSL. So you may as well make it really clean syntax or its kind of a waste of using a macro.

So you don’t need the `@with QueryBuilder` part or the `+` or anything, just add them with the macro. You could swap the dots for spaces to use args in the macro, and you wont even have to parse much AST. Otherwise maybe don’t use a macro, its not worth the confusion and weirdness…

```julia
macro qb(args...)
       do_your_things(args)
end

@qb select(...) from(...) where(...) limit(...)

```

---

_[View the full topic](https://discourse.julialang.org/t/fluent-apis-in-julia/11161)._
