How do you write functional code that is not point-free (tacit)?

Edit

Based on comments and close-vote flags, I’m seeing that I didn’t clearly articulate what I’m trying to ask. So let me state it as succinctly and as straight-forwards as possible.

What does it mean to write non-tacit functional code?

Any answer that answers that question is valid. Everything below is just additional context explaining why I’m asking the question and trying to show my knowledge gap, but if it’s just confusing, ignore it.

Original question

Some background

If I were to define functional programming, I would describe it as the art of decomposing problems into small re-usable functions, and then composing those functions together (with pipelines, a compose operator, partial application, etc) to build your program. If you can compose pieces of your program as a series of pure steps in a pipeline, you’re doing functional programming. Things like function purity and first-class functions are related to the paradigm and have become very popular concepts, but I don’t see them as the core of the paradigm.

I like this definition because it actually feels like I’m describing a paradigm – a way to approach solving a problem, as opposed to, say, defining functional programming simply as “writing pure functions” – function purity is just a technique, not a whole paradigm. Resources like Wikipedia seem to agree with my general conclusion here, where it describes functional programs as “programs [that] are constructed by applying and composing functions”.

If I were to define point-free programming (tacit programming), I would define it in a similar fashion – it’s the technique of building functions through partial application or function composition, as opposed to explicitly defining the function by hand, by explicitly naming all of the parameters it takes, etc.

The problem

I’m realizing that my definition for point-free programming largely overlaps with my definition for functional programming – sort of like two sides of the same coin. With functional programming, we’re breaking up a problem into pieces and composing those pieces together through the use of point-free programming. However, I know that these two terms aren’t meant to be interchangable, and I see plenty of places online that say it’s possible to do functional programming without following the point-free style.

Which leads me to my question: How do you write functional code that is not point-free? What would be an example of this (written in whatever multi-paradigm language you’d like – I’m specifically asking for a multi-paradigm language so I can picture what a similar example would look like if it’s not written in a functional style at all)? I’m assuming my definitions are off – how are they wrong? What would be a better definition(s)?

14

Functional programming is programming with functions, while point-free programming is programming with combinators. All combinators are functions, but not all functions are combinators.

In order to effectively program with combinators, one needs a fairly rich repertoire of predefined (primitive) combinators to start with. If you go with a minimal set instead… Well, try to program something non-trivial in SKI and see how it goes.

So while an important tool in computation theory and other wonderful branches of mathematics I have no clue about, point-free (a k.a. combinatorial) programming is rarely used in practice in its pure form. If you need a combinator that is not in the predefined set or cannot be easily expressed with previously defined combinators, you just define one as a plain old function and move on.

1

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật